package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分兑换记录表
 * </p>
 *
 * @author duke
 * @since 2019-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class IntegralExchangeRecord extends Model<IntegralExchangeRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 会员id
     */
    private String clubUsersId;

    /**
     * 积分商品名称
     */
    private String goodsName;

    /**
     * 积分商品宣传图
     */
    private String goodsImage;

    /**
     * 兑换店主id(操作人id)
     */
    private String userId;

    /**
     * 兑换积分数量
     */
    private Integer exchangeNum;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 所属俱乐部id
     */
    private String clubId;

    /**
     * 所属门店id
     */
    private String shopId;

    /**
     * 兑换状态：0成功 1失败
     */
    private Integer status;


    public static final String ID = "id";

    public static final String CLUB_USERS_ID = "club_users_id";

    public static final String GOODS_NAME = "goods_name";

    public static final String GOODS_IMAGE = "goods_image";

    public static final String USER_ID = "user_id";

    public static final String EXCHANGE_NUM = "exchange_num";

    public static final String CREATE_TIME = "create_time";

    public static final String CLUB_ID = "club_id";

    public static final String SHOP_ID = "shop_id";

    public static final String STATUS = "status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
